package com.haitai.solr.utils;

import org.apache.solr.client.solrj.SolrQuery;
import org.apache.solr.client.solrj.SolrServerException;
import org.apache.solr.client.solrj.impl.HttpSolrClient;
import org.apache.solr.client.solrj.response.QueryResponse;
import org.apache.solr.common.SolrDocument;
import org.apache.solr.common.SolrDocumentList;
import org.springframework.data.domain.Sort;

import java.io.IOException;
import java.util.Base64;
import java.util.HashMap;
import java.util.Map;
import java.util.TreeMap;

public class Test1 {

    public static void main(String[] args) {
        try {
            String data = "dfilecontext:百态人生";
            String outData = Base64.getEncoder().encodeToString(data.getBytes("UTF-8"));
            System.out.println(outData);
        }catch (Exception e){
            e.printStackTrace();
        }

    }


}
